package cn.stacey.day07;

import org.junit.Test;

public class DemoStringBuilder {
	@Test
	public void test() {
		System.out.println(int2String(1234));
	}
	
	public static String int2String(int number) 
	{
		StringBuilder sb=new StringBuilder();
		while(number>0) {
			int n=number%10;
			sb.append(n);
			number/=10;
			
		}
		return sb.toString();
		
		
	}
}
